import { ClientMessage } from "@runtime/generate/message/ClientMessage";
import MessageHandler from "@runtime/module/Handler/MessageHandler";
import TooltipComponent from "@runtime/UnityEngineBridge/TooltipComponent";

/**
 * 提示信息显示
 */
export default class TooltipShowMessageHandler extends MessageHandler<ClientMessage.TooltipShowMessage> {
    protected async RunAsync(message: ClientMessage.TooltipShowMessage): Promise<void> {
        TooltipComponent.Default.Add(message.Information);
    }
}
